﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="InterfaceList.aspx.cs" Inherits="Medianamik.UI.TypeManagement.InterfaceList" MasterPageFile="../MasterPages/MedianamikModule.Master" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
	<a href="interfacemanagement.aspx" class="Action BtAjouter"><%=Resources("Medianamik_TypeManagement", "AddInterface") %></a>
	<a href="#" class="Action BtAnnuler-Inactif"><asp:Literal runat="server" Text="<%$ Resources: Medianamik_Global, Cancel %>" /></a>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
	<telerik:RadGrid runat="server" ID="InterfaceGrid" EnableEmbeddedSkins="false" Skin="Medianamik" AllowPaging="false" 
	    AutoGenerateColumns="false" OnItemCommand="InterfaceGridItemCommand" OnNeedDataSource="InterfaceGridNeedDataSource" 
	    OnItemDataBound="InterfaceGridItemDataBound" AllowMultiRowSelection="false" Width="100%" ClientSettings-EnableRowHoverStyle="true">
		<MasterTableView DataKeyNames="ID">
			<Columns>
			    <telerik:GridBoundColumn DataField="Name"
			        HeaderText="<%$ Resources: Medianamik_TypeManagement, InterfaceNameColumn %>" />
				<telerik:GridTemplateColumn HeaderStyle-Width="1%" HeaderText="Actions" 
				    HeaderStyle-HorizontalAlign="Center" ItemStyle-CssClass="Actions">
					<ItemTemplate>
						<table border="0" cellpadding="0" cellspacing="0" align="center">
							<tr><td><med:EditLink runat="server" ID="EditPropertyButton" 
								    NavigateUrl='<%# "interfacemanagement.aspx?interfaceid=" + Eval("ID") %>' 
								    title="Modifier l'interface" /></td>
								<td><a href="<%# "interfacepropertylist.aspx?interfaceid=" + Eval("ID") %>" title="Modifier les propriétés de l'interface"><img src="../images/Icones/Ico_Page.gif" width="16" height="16" /></a></td>
								<td><med:ConfirmedDeleteButton ID="DeleteInterfaceButton" 
								    CommandArgument='<%# Eval("ID") %>' CommandName="DeleteInterface" 
								    runat="server" ToolTip="<%$ Resources: Medianamik_Global, Action_DeleteTooltip %>" 
								    ConfirmText="<%$ Resources: Medianamik_ContentManagement, ConfirmDeleTypeText %>" /></td></tr>
						</table>
					</ItemTemplate>
				</telerik:GridTemplateColumn>
			</Columns>
			<NoRecordsTemplate>
			    <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
			</NoRecordsTemplate>
		</MasterTableView>
	</telerik:RadGrid>
</asp:Content>